package tools;

import java.awt.Component;
import java.awt.Toolkit;
import javax.swing.JFrame;

public class GUITools {
	static Toolkit kit=Toolkit.getDefaultToolkit();
	public static void center(Component c){
		int x=(kit.getScreenSize().width-c.getWidth());
		int y=(kit.getScreenSize().height-c.getHeight());
		c.setLocation(x,y);
	}
	public static void setTitleImage(JFrame frame,String titleIconPath){
		frame.setIconImage(kit.createImage(titleIconPath));
	}

}
